package com.broada.apm.ajax;

import java.util.List;

import com.broada.apm.entity.AO;
import com.broada.apm.entity.ApplicationSystem;
import com.broada.apm.entity.Relation;
import com.broada.apm.entity.Service;
import com.broada.apm.util.Constants;

public class ApplicationResult extends Result {

	/**
	 * @Fields serialVersionUID :
	 */

	private static final long serialVersionUID = 1L;

	public void setApplications(List<ApplicationSystem> list) {
		this.put(Constants.APPLICATIONS, list);
	}

	public void setApplication(ApplicationSystem app) {
		this.put(Constants.APPLICATION, app);
	}
	
	public void setNodes(List<Service> nodes){
		this.put(Constants.NODES, nodes);
	}
	
	public void setRelations(List<Relation> relations){
		this.put(Constants.RELATIONS, relations);
	}
	
	public void setTopoNode(List<Service> services){
		this.put(Constants.TOPONODES, services);
	}
	
	public void setAos(List<AO> aos){
		this.put("result", aos);
	}
	
	public void setProtocal(List<String> protocal) {
		this.put("protos", protocal);
	}
	
	public void setIps(List<String> ips) {
		this.put("ips", ips);
	}
}
